package springbootyx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springbootyx.service.IUser_Comment_Service;
import springbootyx.entity.User_Comment;
import springbootyx.mapper.IUser_Comment_Mapper;

import java.util.List;
@Service

public class User_Comment_Service implements IUser_Comment_Service {
    @Autowired
    private IUser_Comment_Mapper user_comment_Mapper;


    //通过文章id获取这篇文章的所有评论信息
    @Override
    public List<User_Comment> getCommentUserList(int fid) {
        return user_comment_Mapper.getCommentUserList(fid);
    }

}
